package leetbook.hash;

import java.util.ArrayList;
import java.util.HashMap;

public class TestHash {

    public static void main(String[] args) {

        HashMap<Integer, ArrayList<Integer>> valToIdxs = new HashMap<>();

//        valToIdxs.put(0,new ArrayList<>());



        ArrayList<Integer> a = valToIdxs.getOrDefault(0,new ArrayList<>());

        a.add(1);

        a = valToIdxs.get(0);

        System.out.println(a);

    }

}
